Skip to content

README: real apply at 90 validators and 800 ms, and what limits it - #5504

Merged
SirTyson merged 1 commit into
stellar:overlay-v2-sharedfrom
SirTyson:perf/readme-real-apply-results
Nov 14, 2026
Merged

SirTyson merged 1 commit into
stellar:overlay-v2-sharedfrom
SirTyson:perf/readme-real-apply-results

Conversation

@SirTyson

Copy link
Copy Markdown
Contributor

README only, no code change.

Every result in the README so far skips transaction execution and sleeps in its place. This adds the first runs of the branch (5d24d5494, all five experiments) with the load executed: native-asset SAC payments at 30 organizations / 90 validators and an 800 ms target, 2,000 to 8,000 TPS, with 16 and 32 Soroban clusters, and an analysis of what limits the network there.

What the README now says

Offered load Clusters Block time p75 / p99 (limits 960 / 1,600 ms) Time per ledger Execution / commit per ledger Outcome
2,000 TPS 16 / 32 804 / 1,165 ms; 804 / 1,040 ms 0.80 s 106 / 70 ms; 101 / 69 ms on target
4,000 TPS 16 804 / 835 ms 0.80 s 216 / 111 ms on target
6,000 TPS 16 / 32 927 / 1,164 ms; 906.5 / 1,197 ms 0.86 s; 0.85 s 342 / 177 ms; 325 / 179 ms inside the limits, 16% over the target and rising
8,000 TPS 16 / 32 1,236 / 1,482 ms; 1,222.5 / 1,481 ms 1.16 s 515 / 244 ms; 496 / 246 ms window missed on all 90 nodes
  • The network holds 800 ms with real apply up to somewhere between 4,000 and 6,000 TPS. With simulated apply the same fixture was at 980 ms for 10,080 TPS.
  • Apply costs about 100 us of wall time per payment (65 us of execution, 31 to 35 us of commit). Execution runs speculatively inside the ballot and is free up to about 4,700 payments per ledger; the commit always follows externalize. Against the simulated run at the same set size, the whole difference is after consensus: 0.33 s instead of 0.07 s.
  • 16 or 32 clusters make no difference. The cluster workers are 2 to 11% busy; the time is serial work on the apply thread.
  • What limits it, by share of the leader's cycle at 8,000 TPS: the ballot (27%, constant), the tx set build on the leader's main thread (23%), the commit (21%), the way from the proposal to the followers' vote (17%), execution beyond the ballot (7%). As a line: about 315 ms plus 98 us per payment in the ledger, which crosses 800 ms at about 6,200 TPS.
  • CPU profiles of the apply thread (6-node networks, 8,000 TPS): 74 us of CPU per payment; 20% of it is the single-threaded bulk load of the source accounts, 27% builds, copies, writes or frees transaction meta for the debug file (METADATA_DEBUG_LEDGERS, default 100).
  • Two settings measured on that 6-node fixture: with the meta off the close is 23% cheaper per payment (87.6 to 67.5 us) and the network goes from a backlog at 1,057 ms per ledger to 802 ms with everything included; the bucket list account cache shortens the serial prefetch by 70% but doubles the cost of an account load on the workers (a cache hit takes an exclusive lock), so the block time does not move.

Changes

  • Intro: one paragraph on the real-apply result.
  • "Performance results": two new sections, "Real apply at 90 validators and 800 ms" (the series table, the comparison with the simulated-apply run) and "What limits real apply" (the ranked table, the apply thread by step, the two measured settings).
  • "How it was measured": a section "The real-apply runs" (what differs from the simulated runs, the command, where the load generator modes and the harness flags are, how the profiles were taken).
  • "Limits of these numbers": the caveats of the real-apply runs.
  • "Known limitations": speculative execution is no longer unmeasured with real execution; says what was and was not covered.

What a reader should know

  • One run per point.
  • Every run's verdict is FAIL, also where the block time is on target. In those runs the reason is the load generator: 1 to 9 of 90 generators time out because their last three payments are included 25 to 70 s after the load ends. No payment failed in any run. The late delivery is not explained, and the inclusion check did not run.
  • The instance type differs from the simulated runs: m6id.8xlarge, with 3 to 20 c6id.8xlarge in four of the seven runs (EC2 refused a fleet of 90 c6id.8xlarge), against c6id.8xlarge. The load is 300 s instead of 900 s. The two 2,000 TPS runs kept core's data on the root volume; the others on local NVMe.
  • The load is not in this branch. It needs two test-only load generator modes that are on SirTyson:perf/loadgen-real-sac (e168408bb), and harness flags that are in perfnet's pull request FBA #5 (stellar-experimental/performance-testing), not merged.
  • The profiles and the two settings were measured on 6 validators, not on 90. The fixes in the bottleneck table are estimates, except those two settings.
  • The cause of the core thread that is busy 100% of a core at 90 validators (most likely the quorum intersection checker) is inferred from the code, not profiled.

Testing

None: the diff is README.md only, so there is nothing to build or test.

@SirTyson
SirTyson marked this pull request as ready for review November 14, 2026 18:58
@SirTyson
SirTyson merged commit d9ae5fc into stellar:overlay-v2-shared Nov 14, 2026
2 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant